//rectangle drawing  Claas



#ifndef RECTANGLE_H
#define RECTANGLE_H



#include "MyDisplay.h"
#include "Line.h"
#include "Matrix.h"
#include <fstream>
#include <math.h>

using namespace std;

class Rectangle:public Line{

   public:
   int x1,y1;
   int x2,y2;
   int x3,y3;
   int x4,y4;
   
   
    Rectangle();
    Rectangle(const char *fileName,const MyDisplay &another);
    Rectangle(const MyDisplay &another);
    Rectangle(const Matrix &R);
    
    ~Rectangle();
    
    //draw rectangle
     bool draw();
     
     bool draw(const Matrix &T);
     
    // draw rectangle from file
     bool draw(const char *fileName);
     
    // Fill reactangle 
     bool fill();
     
    //save rectangle 
     bool save(const char *fileName);
    
 };
 
 #endif
 
 
 
 
